package com.cloudpark.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/report")
public class ReportController extends BaseController {

    private static final Logger log = Logger.getLogger(ReportController.class);

    @RequestMapping(value = "/charge/day", method = RequestMethod.GET)
    public ModelAndView chargeDay(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/charge/day.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/charge/week", method = RequestMethod.GET)
    public ModelAndView chargeWeek(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/charge/week.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/charge/month", method = RequestMethod.GET)
    public ModelAndView chargeMonth(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/charge/month.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/charge/year", method = RequestMethod.GET)
    public ModelAndView chargeYear(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/charge/year.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/vehicleflow/day", method = RequestMethod.GET)
    public ModelAndView vehicleflowDay(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/vehicleflow/day.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/vehicleflow/week", method = RequestMethod.GET)
    public ModelAndView vehicleflowWeek(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/vehicleflow/week.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/vehicleflow/month", method = RequestMethod.GET)
    public ModelAndView vehicleflowMonth(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/vehicleflow/month.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/vehicleflow/year", method = RequestMethod.GET)
    public ModelAndView vehicleflowYear(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/vehicleflow/year.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/ondutyCharge", method = RequestMethod.GET)
    public ModelAndView ondutyCharge(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/ondutyCharge.jsp");
        initMenu(request, response);
        return mv;
    }

    @RequestMapping(value = "/grossIncome", method = RequestMethod.GET)
    public ModelAndView grossIncome(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("report/grossIncome.jsp");
        initMenu(request, response);
        return mv;
    }
}
